package com.tul.exercise.base.jmockit.base;

import mockit.Expectations;
import mockit.Mocked;
/**
 * MyObject 测试类
 *
 * @author tuliang
 */
public class MyObjectTest {

    @Mocked
    MyObject obj;

    public void testHello() {

        String welcome = "welcome";
        new Expectations(){
            {
                obj.hello((String)any);
                result = welcome;
            }
        };

        System.out.println(obj.hello("xxx"));

    }

}
